﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _02.建造者模式.Entities
{
    /// <summary>
    /// 套餐商品集
    /// </summary>
    public class MealProduct : BaseValueObject
    {
        public MealProduct() { }
        public MealProduct(bool required, bool upGraded, decimal upGradedFee, Meal meal, Product product)
        {
            Required = required;
            UpGraded = upGraded;
            UpGradedFee = upGradedFee;
            Meal = meal;
            Product = product;
        }


        public bool Required { get; private set; }
        public bool UpGraded { get; private set; }
        public decimal UpGradedFee { get; private set; }
        public virtual Meal Meal { get; private set; }
        public virtual Product Product { get; private set; }
    }
}
